#include <iostream>
#include <cmath>
#include <chrono>    /// For time counting...

#define N 100000000

int main(int argc, char* argv[])
{
    std::chrono::steady_clock::time_point t1
	= std::chrono::steady_clock::now(); 
    double sum = 0.0;
    for (int i = 0; i < N; i++)
	sum += std::sin(double(i));
    std::chrono::steady_clock::time_point t2
	= std::chrono::steady_clock::now(); 
    std::chrono::duration<double> time_span
	= std::chrono::duration_cast<std::chrono::duration<double> >(t2 - t1);
    std::cout.precision(20);
    std::cout << "sum = " << sum << std::endl;
    std::cout << "It took me " << time_span.count() << " seconds." << std::endl;
    
    return 0;
};
